<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusFixedCostYear extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_fixed_cost_year', function (Blueprint $table) {
            $table->id();
            $table->integer('year')->nullable()->comment('年份');
            $table->string('type')->nullable()->comment('项目类型');
            $table->decimal('report', 10, 2)->nullable()->comment('上报数');
            $table->decimal('actual', 10, 2)->nullable()->comment('核准数');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_fixed_cost_year');
    }
}
